<template>
  <div class="father" @click="fn">
    <form action="http://www.itcast.cn">
      <input type="text" />

      <button @click.stop.prevent='fn1'>提交</button>
    </form>
  </div>
</template>

<script>
export default {
  methods:{
    fn(){
      console.log('我是父元素');
    },
    fn1(){
      console.log(1);
    }
  }
}
</script>

<style></style>
